-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Update argocd, k8s & kustomize deps #46
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Siddhesh Ghadi <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Siddhesh Ghadi <[email protected]>
Signed-off-by: Siddhesh Ghadi <[email protected]>
"strings" | ||
|
||
"github.com/go-git/go-git/v5" | ||
"github.com/go-git/go-git/v5/plumbing/object" | ||
"github.com/go-git/go-git/v5/plumbing/storer" | ||
"github.com/go-git/go-git/v5/storage/memory" | ||
"sigs.k8s.io/kustomize/pkg/fs" | ||
fs "sigs.k8s.io/kustomize/kyaml/filesys" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sigs.k8s.io/kustomize/pkg/fs
package is deprecated in favour of sigs.k8s.io/kustomize/kyaml/filesys
k8sfactory := k8sdeps.NewFactory() | ||
ldr, err := loader.NewLoader(path, files) | ||
if err != nil { | ||
return nil, err | ||
} | ||
defer func() { | ||
err = ldr.Cleanup() | ||
if err != nil { | ||
panic(err) | ||
} | ||
}() | ||
kt, err := target.NewKustTarget(ldr, k8sfactory.ResmapF, k8sfactory.TransformerF) | ||
if err != nil { | ||
return nil, err | ||
} | ||
r, err := kt.MakeCustomizedResMap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest kustomize provides a wrapper krusty
which has simplified functions to run kustomize build and return resources.
ref:
Signed-off-by: Siddhesh Ghadi <[email protected]>
What does this PR do / why we need it:
Update Argo CD, K8s & kustomize dep to latest
Changes
Note
Kustomize has changed a lot over the years with breaking and API changes. I am not familiar with backend codebase or its functionalities. It would be good if someone familiar with backend reviews the kustomize related changes. Additionally, some manual testing of the functionalities would be great if possible.